package org.achievement.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.achievement.system.pojo.entity.Score;
import org.achievement.system.pojo.excel.ScoreExcel;
import org.achievement.system.pojo.form.ScoreForm;
import org.achievement.system.pojo.vo.ScoreVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

@Mapper
public interface ScoreDao extends BaseMapper<Score> {

    /**
     * 查询列表
     *
     * @param scoreForm
     * @return
     */
    public List<ScoreVo> list(@Param("scoreForm") ScoreForm scoreForm);

    /**
     * 查询所有数据
     *
     * @param scoreForm
     * @return
     */
    public List<ScoreExcel> listAll(@Param("scoreForm") ScoreForm scoreForm);

    /**
     * 统计查询总数
     *
     * @param scoreForm
     * @return
     */
    public Integer count(@Param("scoreForm") ScoreForm scoreForm);

    /**
     * 统计分数等级，如优秀，良好，及格，不及格人数
     *
     * @param
     * @return
     */
    public HashMap sumScore();
}